<script language="JavaScript" type="text/javascript">
    var WEB_DIR = "{$WEB_DIR}";
    var IMAGE_PATH = "{$IMAGE_PATH}";
    {literal}
    jQuery(document).ready(function() {
        alert('aaa');
    });
    {/literal}
</script>